package com.flashmoment.video.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.flashmoment.video.utils.PageUtils;
import com.flashmoment.video.utils.Query;

import com.flashmoment.video.dao.VideoTypeDao;
import com.flashmoment.video.entity.VideoTypeEntity;
import com.flashmoment.video.service.VideoTypeService;


@Service("videoTypeService")
public class VideoTypeServiceImpl extends ServiceImpl<VideoTypeDao, VideoTypeEntity> implements VideoTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VideoTypeEntity> page = this.page(
                new Query<VideoTypeEntity>().getPage(params),
                new QueryWrapper<VideoTypeEntity>()
        );

        return new PageUtils(page);
    }

}